<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=get_app_inf('appTitle')?> - User Manage</title>
<link href="/templates/Default/BackEnd/css/default.css" rel="stylesheet" type="text/css">
<script language="javascript" src="js/jquery.js"></script>
<script language="javascript" src="js/jquery-validate/jquery.validate.js"></script>
<script language="javascript" src="js/thickbox/thickbox.js"></script>
<script language="javascript">
$().ready(function() {
	
	$("#frmContent").validate({
		rules: {
			
			
			title: {
				required: true
				 
			} 
		},
		messages: {


			title: {
				required: "Please enter the title"
			}
			 
		}
	});
	
	 
});
</script>

<style type="text/css">

#frmContent label { width: 250px; }
#frmContent label.error, #frmContent input.submit { color:red;margin-left: 10px; }
 
</style> 
</head>

<body style="background-color:#FFF;margin:0">
<div id="container" >
<div id="nav" align="left">
				 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="18" align="left" valign="middle">
					<img src="images/icon_home.jpg" width="16" height="15" align="absbottom" /> &nbsp;<strong>Location：</strong> 
                    <a href="<?=url("MBoAdmin","Main")?>">Home</a> > <a href="<?=url($this->_controllerName,'')?>">Website</a> > Create New Page</td>
				  </td>
				  <td align="right">
				  <a href="#"><img src="images/btn_refresh.jpg" width="46" height="18" border="0"></a> <a href="#"><img src="images/btn_return.jpg" width="46" height="18" border="0"></a>
				  </td>
				  <td width="10"></td>
				  </tr>
                  <tr><td>
                  <div id="operate">			
			  <table width="100%"  border="0" cellspacing="0" cellpadding="0" align="left">
                <tr>
                  <td width="350" align="left">
                  
				  <a href="<?=url($this->_controllerName,'ADD')?>"><img src="images/btn_add.jpg" width="58" height="21" border="0"></a>
				  <!--<a href="#"><img src="images/btn_edit.jpg" width="58" height="21" border="0"></a>
				  <a href="#"><img src="images/btn_del.jpg" width="58" height="21" border="0"></a>
				  <a href="#"><img src="images/btn_statistics.jpg" width="58" height="21" border="0"></a>
                  -->
				  </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table>
			</div>
                  </td></tr>
		 </table> 	
  </div>
			
			
			<!--Content Begin-->
		  <div id="content">
          <form action="<?=$action?>" method="post" enctype="multipart/form-data" name="frmContent" id="frmContent">
            <table width="100%"  border="0" cellpadding="2" cellspacing="0">
              <tr>
                <td colspan="2" class="th"><?=$rowset['id']?'Edit Page':'Create New Page'?> </td>
              </tr>
             
              <tr>
                <td width="17%" class="td">Title:</td>
                <td width="83%" class="td"><input name="title" type="text" id="title" value="<?=$rowset['title']?>" size="50" /> <?=printError('error','title')?></td>
              </tr>
              <tr>
                <td class="td">Keyword:</td>
                <td class="td"><textarea name="keyword" cols="50" id="keyword"><?=$rowset['keyword']?></textarea></td>
              </tr>
              <tr>
                <td class="td">Description:</td>
                <td class="td"><textarea name="description" cols="50" rows="8" id="description"><?=$rowset['description']?></textarea></td>
              </tr>
              <tr>
                <td class="td">SEQ:</td>
                <td class="td"><input name="seq" type="text" id="seq" value="<?=$rowset['seq']?>" size="5" /></td>
              </tr>
              <tr>
                <td colspan="2" align="left" class="td">Content:</td>
              </tr>
              <tr>
                <td colspan="2" class="td"><? $Editor->Create();?></td>
              </tr>
              <tr>
                <td class="td">Attribute: </td>
                <td class="td"><input name="addable" type="checkbox" id="addable" value="Y" <?=$rowset['addable']=='Y'?'checked="checked"':''?>/>
                  Sub Page 
                    <input name="editable" type="checkbox" id="editable" value="Y" <?=$rowset['editable']=='Y'?'checked="checked"':''?>/>
                  Editable
<input name="removeable" type="checkbox" id="removeable" value="Y" <?=$rowset['removeable']=='Y'?'checked="checked"':''?> />
                    Removeable</td>
              </tr>
              <tr>
                <td colspan="2" align="center" valign="middle" class="td">
                <?
                if($rowset['id'] == ''){
				?>
                <input type="image" name="imageField" id="imageField" src="<?=BACKEND_IMG?>/btn_add.jpg" />
                <?
				}else{
				?>
                <input type="image" name="imageField" id="imageField" src="<?=BACKEND_IMG?>/btn_edit.jpg" />
                <? } ?>
                <input type="hidden" name="token" id="token" value="<?=$token?>" />
                <input type="hidden" name="id" value="<?=$rowset['id']?>" />
                </td>
              </tr>
              
            </table>
          </form>
  </div>
  
  <!--Content End-->
</div>
</body>
</html>